import request from "@/utils/request.js";

// 获得医生列表
export function getDoctorList(data) {
  return request.get("cms/doctor/list", data, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 获得医生分页
export function getDoctorPage(data) {
  return request.get("cms/doctor/page", data, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 获得医生
export function getDoctor(id) {
  return request.get("cms/doctor/get", {
    id
  }, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 增加医生浏览量
export function addDoctorBrowseCount(id) {
  return request.put("cms/doctor/add-browse-count?id=" + id, {}, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}
